// 员工路由
import Layout from '@/layout'
export default {
  path: '/employees',
  component: Layout,
  children: [{
    // 如果二级路由的path映射地址是空字符串，默认显示该二级路由组件，为了拆分方便
    path: '',
    name: 'employees',
    component: () => import('@/views/employees/employees.vue'),
    meta: { title: '员工', icon: 'people' }
  },
  {
    path: 'detail/:id', // 动态路由参数
    component: () => import('@/views/employees/detail'),
    hidden: true,
    meta: {
      title: '员工详情'
    }
  }

  ]
}
